﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000315 RID: 789
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ClockParkInfo : IMessage<ClockParkInfo>, IMessage, IEquatable<ClockParkInfo>, IDeepCloneable<ClockParkInfo>, IBufferMessage
	{
		// Token: 0x17000A3E RID: 2622
		// (get) Token: 0x06002361 RID: 9057 RVA: 0x0006439C File Offset: 0x0006259C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ClockParkInfo> Parser
		{
			get
			{
				return ClockParkInfo._parser;
			}
		}

		// Token: 0x17000A3F RID: 2623
		// (get) Token: 0x06002362 RID: 9058 RVA: 0x000643A3 File Offset: 0x000625A3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ClockParkInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000A40 RID: 2624
		// (get) Token: 0x06002363 RID: 9059 RVA: 0x000643B5 File Offset: 0x000625B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ClockParkInfo.Descriptor;
			}
		}

		// Token: 0x06002364 RID: 9060 RVA: 0x000643BC File Offset: 0x000625BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClockParkInfo()
		{
		}

		// Token: 0x06002365 RID: 9061 RVA: 0x000643CF File Offset: 0x000625CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClockParkInfo(ClockParkInfo other) : this()
		{
			this.scriptId_ = other.scriptId_;
			this.chapterIds_ = other.chapterIds_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002366 RID: 9062 RVA: 0x00064405 File Offset: 0x00062605
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClockParkInfo Clone()
		{
			return new ClockParkInfo(this);
		}

		// Token: 0x17000A41 RID: 2625
		// (get) Token: 0x06002367 RID: 9063 RVA: 0x0006440D File Offset: 0x0006260D
		// (set) Token: 0x06002368 RID: 9064 RVA: 0x00064415 File Offset: 0x00062615
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ScriptId
		{
			get
			{
				return this.scriptId_;
			}
			set
			{
				this.scriptId_ = value;
			}
		}

		// Token: 0x17000A42 RID: 2626
		// (get) Token: 0x06002369 RID: 9065 RVA: 0x0006441E File Offset: 0x0006261E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> ChapterIds
		{
			get
			{
				return this.chapterIds_;
			}
		}

		// Token: 0x0600236A RID: 9066 RVA: 0x00064426 File Offset: 0x00062626
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ClockParkInfo);
		}

		// Token: 0x0600236B RID: 9067 RVA: 0x00064434 File Offset: 0x00062634
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ClockParkInfo other)
		{
			return other != null && (other == this || (this.ScriptId == other.ScriptId && this.chapterIds_.Equals(other.chapterIds_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600236C RID: 9068 RVA: 0x00064484 File Offset: 0x00062684
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ScriptId != 0U)
			{
				num ^= this.ScriptId.GetHashCode();
			}
			num ^= this.chapterIds_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600236D RID: 9069 RVA: 0x000644D1 File Offset: 0x000626D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600236E RID: 9070 RVA: 0x000644D9 File Offset: 0x000626D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600236F RID: 9071 RVA: 0x000644E4 File Offset: 0x000626E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ScriptId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.ScriptId);
			}
			this.chapterIds_.WriteTo(ref output, ClockParkInfo._repeated_chapterIds_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002370 RID: 9072 RVA: 0x00064534 File Offset: 0x00062734
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ScriptId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ScriptId);
			}
			num += this.chapterIds_.CalculateSize(ClockParkInfo._repeated_chapterIds_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002371 RID: 9073 RVA: 0x00064588 File Offset: 0x00062788
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ClockParkInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ScriptId != 0U)
			{
				this.ScriptId = other.ScriptId;
			}
			this.chapterIds_.Add(other.chapterIds_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002372 RID: 9074 RVA: 0x000645D5 File Offset: 0x000627D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002373 RID: 9075 RVA: 0x000645E0 File Offset: 0x000627E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 120U && num != 122U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.chapterIds_.AddEntriesFrom(ref input, ClockParkInfo._repeated_chapterIds_codec);
					}
				}
				else
				{
					this.ScriptId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000E6A RID: 3690
		private static readonly MessageParser<ClockParkInfo> _parser = new MessageParser<ClockParkInfo>(() => new ClockParkInfo());

		// Token: 0x04000E6B RID: 3691
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000E6C RID: 3692
		public const int ScriptIdFieldNumber = 4;

		// Token: 0x04000E6D RID: 3693
		private uint scriptId_;

		// Token: 0x04000E6E RID: 3694
		public const int ChapterIdsFieldNumber = 15;

		// Token: 0x04000E6F RID: 3695
		private static readonly FieldCodec<uint> _repeated_chapterIds_codec = FieldCodec.ForUInt32(122U);

		// Token: 0x04000E70 RID: 3696
		private readonly RepeatedField<uint> chapterIds_ = new RepeatedField<uint>();
	}
}
